[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
TRUE
Function
To provide a named constant for the boolean true value in boolean
expressions.
Value
1 = 1b = 1o = 1h
Remarks
BOOLEAN logic is based on two values: TRUE (1) and FALSE (0). The
literal numeric constants 0 and 1 may be used in expressions, or you
may use the predefined named constants TRUE and FALSE. They make for
more readable, maintainable code and have no more overhead than any
other constant value at run time.
Example
BOOLEAN flag
LET flag = TRUE
WHILE (!flag) DO
INPUTSTR "Text",s,@X0E,60,"ABCDEFGHIJKLMNOPQRSTUVWXYZ",UPCASE
PRINTLN s
IF (s = "QUIT") LET flag = FALSE
ENDWHILE
See Also:
FALSE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson